﻿namespace HiMap.Carto.Render
{
    using HiMap.Base;
    using HiMap.Carto;
    using System;

    public abstract class FeatureLayerRenderClass : HiMapPtrClass, IFeatureLayerRender, IHiMapPtr
    {
        protected FeatureLayerRenderClass()
        {
        }

        ~FeatureLayerRenderClass()
        {
            if (!base.m_Used)
            {
                VC.KWG_RENDER_DELETE(base.m_InPtr);
            }
        }

        FeatureLayerRenderType IFeatureLayerRender.RenderType
        {
            get
            {
                if (base.m_InPtr == 0)
                {
                    return FeatureLayerRenderType.NullRender;
                }
                if (VC.KWG_RENDER_GET_TYPE(base.m_InPtr) == 0)
                {
                    return FeatureLayerRenderType.SimpleLayerRender;
                }
                return FeatureLayerRenderType.GroupLayerRender;
            }
        }
    }
}

